<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Axios练习</title>
	</head>
	<body>
		<h1>Axios远程调用联系</h1>
		<script src="../js/axios.js"></script>
		<script>
			//1.删除name="xxx"使用params对象的方式来实现
			//2.删除name="xxx"的数据 sex="xxx"使用restFul
			let user = {
				name : '宵夜吃什么'
				
			}
			axios.delete("http://localhost:8090/deleteByName",{
				params: user
			}).then(result => {
				console.log(result.data)
			})
			axios.delete("http://localhost:8090/user/MP/其他")
					 .then(result => {
						 console.log(result.data)
					 })
		</script>
	</body>
</html>
